import { createApp } from 'vue';
import Router from './router/index';
import { HttpPlugin } from './plugins/index';
import App from './App.vue';
import './assets/styles/styles.less';
import './assets/styles/app.less';
import './assets/styles/flights.less';
import './assets/styles/map.less';

let BACKEND_BASEURL = '';

let mode;
if ((mode = (import.meta as any).env.MODE)) {
  if (mode === 'remote') {
    // BACKEND_BASEURL = 'http://10.6.240.73:8081/hxdp';
    BACKEND_BASEURL = 'http://localhost:8081/hxdp';

  }
}

createApp(App)
  .use(HttpPlugin, {
    baseURL: BACKEND_BASEURL + '/airline',
  })
  .use(Router)
  .mount('#app');
